import React from 'react';
import Loadable from 'react-loadable';
import style from './style.less';

export const Loading = () => (
	<div className={style.wrap}>
		<div className={style.loading}>
			<div className={style.line}></div>
			<div className={style.line}></div>
			<div className={style.line}></div>
		</div>
	</div>

);


export const Load = comp => Loadable({
	loader: comp,
	loading: Loading,
});